package com.huanbao.nongwu.pojo.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("devicedoc")
public class DeviceDoc {

    @TableId(value = "id", type = IdType.AUTO)//指定自增策略
    private Long id;

    @TableField(value = "number")
    private Integer number;

    //设备名称
    @TableField(value = "devicename")
    private String devicename;

    //设备型号
    @TableField(value = "devicetype")
    private String devicetype;

    //安装时间
    @TableField(value = "setuptime")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date setuptime;

    //最后修复时间
    @TableField(value = "lastrepairtime")
    private Date lastrepairtime;

    // 维护周期
    @TableField(value = "maintaincycleday")
    private Integer maintaincycleday;

    // 使用年限
    @TableField(value = "limityears")
    private Integer limityears;

    // 修复记录
    @TableField(value = "repairrecord")
    private Integer repairrecord;

    // 站点 id
    @TableField(value = "sewageid")
    private Integer sewageid;

    //设备编号
    @TableField(value = "deviceno")
    private String deviceno;


    //设备功率
    @TableField(value = "devicepower")
    private Integer devicepower;


}